/**
 * 
 */
package be.bejug.scrumadmin.services.impl;

import java.util.HashSet;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import be.bejug.scrumadmin.domain.Sprint;
import be.bejug.scrumadmin.domain.Story;
import be.bejug.scrumadmin.repository.SprintRepository;
import be.bejug.scrumadmin.services.SprintService;

/**
 * @author Glenn Dejaeger
 * 
 */
// @Service
@Transactional
public class SprintServiceImpl implements SprintService {
	@Autowired
	private SprintRepository sprintRepository;

	@Override
	@Transactional(readOnly = true)
	public Set<Sprint> getAllSprints() {
		return new HashSet<Sprint>(sprintRepository.findAll());
	}

	@Override
	public Set<Story> getStories(final Sprint sprint) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Sprint getCurrentSprint() {
		// TODO Auto-generated method stub
		return null;
	}
}
